package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.CheckItem;

import java.util.List;

public interface CheckItemService {
    /**
     * @Author: 位帅帅
     * @Date: 10:53 2021/1/5
     * @Params: [queryPageBean]
     * @RerurnType: com.itheima.health.entity.PageResult
     * @Description: 分页查询检查项
     */
    PageResult findPage(QueryPageBean queryPageBean);

    /**
     * @Author: 位帅帅
     * @Date: 11:44 2021/1/5
     * @Params: [checkItem]
     * @RerurnType: void
     * @Description: 添加检查项
     */
    void add(CheckItem checkItem);

    /**
     * @Author: 位帅帅
     * @Date: 11:54 2021/1/5
     * @Params: [id]
     * @RerurnType: void
     * @Description: 删除检查项
     */
    void delete(Integer id);

    /**
     * @Author: 位帅帅
     * @Date: 12:08 2021/1/5
     * @Params: [id]
     * @RerurnType: com.itheima.health.pojo.CheckItem
     * @Description: 根据id查询检查项
     */
    CheckItem findById(Integer id);

    /**
     * @Author: 位帅帅
     * @Date: 12:13 2021/1/5
     * @Params: [checkItem]
     * @RerurnType: void
     * @Description: 编辑检查项
     */
    void edit(CheckItem checkItem);

    /**
     * @Author: 位帅帅
     * @Date: 15:29 2021/1/5
     * @Params: []
     * @RerurnType: java.util.List<com.itheima.health.pojo.CheckItem>
     * @Description: 查询全部检查项
    */
    List<CheckItem> findAll();
}
